﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml.Serialization;
using FM.录音.Data;
using FM.录音.Services;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace FM.录音.Test
{
    [TestClass]
    public class 声卡设备test
    {
        [TestMethod]
        public void 声卡设备_test()
        {
           var inlist = 声卡设备.所有输入声卡();
            Assert.IsTrue(inlist.Count >0);

            var outlist = 声卡设备.所有输出声卡();
            Assert.IsTrue(outlist.Count > 0);
        }

        [TestMethod]
        public void 默认输入声卡_test()
        {
            var inlist = 声卡设备.查找输入声卡("默认");
            Assert.IsTrue(inlist !=null);

            var outlist = 声卡设备.查找输出声卡("默认");
            Assert.IsTrue(outlist != null);
        }
    }
}
